import request from '@/utils/request'

// 获取档案门类
export function getcategory(query){
  return request({
    url: '/archive/tongji/getcategory',
    method: 'post',
    params: query
  })
}

// 获取门类树
export function getCategoryTree(query) {
  return request({
    url: '/archive/category/listnopagehasgroup',
    method: 'get',
    params: query
  })
}

// 自定义统计
export function getdatatable(data) {
  return request({
    url: '/archive/tongji/getdatatable',
    method: 'post',
    data: data
  })
}
